def myGen():
    print("生成器被执行")
    yield 1
    yield 2
myG = myGen()
next(myG)
next(myG)
next(myG)
